/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. All rights reserved.
 * Description:
 * Author: lilianlin
 * Create: 2021-01-04
 */

#include "p2p_mgmt.h"


namespace hccl {

HcclResult P2PMgmtPub::EnableP2P(std::vector<uint32_t> remoteDevices)
{
    return P2PMgmt::Instance().EnableP2P(remoteDevices);
}

HcclResult P2PMgmtPub::DisableP2P(std::vector<uint32_t> remoteDevices)
{
    return P2PMgmt::Instance().DisableP2P(remoteDevices);
}

HcclResult P2PMgmtPub::WaitP2PEnabled(std::vector<uint32_t> remoteDevices, std::function<bool()> needStop)
{
    return P2PMgmt::Instance().WaitP2PEnabled(remoteDevices, needStop);
}
}
